<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<fmt:setLocale value="pt-BR" />
<c:set var="contexto" scope="session" value="${pageContext.request.contextPath}"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Editar categoria</title>
  </head>
  <body>
    <h1>Editar categoria</h1>
    <%@include file="/include/fazerlogin.jsp" %>
    <form:form action="atualizar.do" commandName="categoria">
      <form:hidden path="id" />
      <fieldset>
        Categoria <form:input path="nome" /><br/>
        Descricao <form:input path="descricao" /><br/>
        <input name="submit" type="submit" value="Gravar" />
        <a href="apagar.do?id=${categoria.id}">Apagar</a>
        <a href="listar.do">Voltar</a>
      </fieldset>
    </form:form>
  </body>
</html>
